package cn.itcast.service.impl;

import cn.itcast.dao.PayDao;
import cn.itcast.service.PayService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.Map;


@Service
public class PayServiceImpl implements PayService {

    @Autowired
    private PayDao payDao;

    @Override
    public void updatePayStatus(String orderId) {

        short payStatus = 1;
        Date date= new Date();

        this.payDao.updatePayStatus(payStatus,date,orderId);
    }
}
